package com.platform.service.impl;

import com.platform.dao.CommentDao;
import com.platform.entity.CommentEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.service.CommentService;

/**
 * Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-07-01 18:01:57
 */
@Service("commentService")
public class ApiCommentServiceImpl implements CommentService {
    @Autowired
    private CommentDao commentDao;

    @Override
    public CommentEntity queryObject(Long id) {
        return commentDao.queryObject(id);
    }

    @Override
    public List<CommentEntity> queryList(Map<String, Object> map) {
        return commentDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return commentDao.queryTotal(map);
    }

    @Override
    public int save(CommentEntity apiComment) {
        return commentDao.save(apiComment);
    }

    @Override
    public int update(CommentEntity apiComment) {
        return commentDao.update(apiComment);
    }

    @Override
    public int delete(Long id) {
        return commentDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[]ids) {
        return commentDao.deleteBatch(ids);
    }
}
